package com.liulihui.service.impl;

import com.liulihui.dao.UserDao;
import com.liulihui.domain.User;
import com.liulihui.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName: UserServiceImpl
 * @Description:
 * @Author liulihui
 * @Date: 2021/8/4 22:32
 * @URL：
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Transactional
    public void register(User user) {
     userDao.insert(user);

    }
}